<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>PHP 标准库（SPL）</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="seaslog.warning.html">« SeasLog::warning</a></li>
      <li style="float: right;"><a href="intro.spl.html">简介 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="refs.basic.other.html">其它基本扩展</a></li>
    <li>PHP 标准库（SPL）</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="book.spl" class="book">
 
 <h1 class="title">PHP 标准库（SPL）</h1>
 
 
 

 






 





 











 









 









 







 






 







 










<ul class="chunklist chunklist_book"><li><a href="intro.spl.html">简介</a></li><li><a href="spl.setup.html">安装/配置</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="spl.requirements.html">需求</a></li><li><a href="spl.installation.html">安装</a></li><li><a href="spl.configuration.html">运行时配置</a></li><li><a href="spl.resources.html">资源类型</a></li></ul></li><li><a href="spl.constants.html">预定义常量</a></li><li><a href="spl.datastructures.html">数据结构</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="class.spldoublylinkedlist.html">SplDoublyLinkedList</a> — The SplDoublyLinkedList class</li><li><a href="class.splstack.html">SplStack</a> — SplStack 类</li><li><a href="class.splqueue.html">SplQueue</a> — SplQueue 类</li><li><a href="class.splheap.html">SplHeap</a> — The SplHeap class</li><li><a href="class.splmaxheap.html">SplMaxHeap</a> — The SplMaxHeap class</li><li><a href="class.splminheap.html">SplMinHeap</a> — The SplMinHeap class</li><li><a href="class.splpriorityqueue.html">SplPriorityQueue</a> — The SplPriorityQueue class</li><li><a href="class.splfixedarray.html">SplFixedArray</a> — The SplFixedArray class</li><li><a href="class.splobjectstorage.html">SplObjectStorage</a> — The SplObjectStorage class</li></ul></li><li><a href="spl.iterators.html">迭代器</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="class.appenditerator.html">AppendIterator</a> — AppendIterator 类</li><li><a href="class.arrayiterator.html">ArrayIterator</a> — ArrayIterator 类</li><li><a href="class.cachingiterator.html">CachingIterator</a> — CachingIterator 类</li><li><a href="class.callbackfilteriterator.html">CallbackFilterIterator</a> — The CallbackFilterIterator class</li><li><a href="class.directoryiterator.html">DirectoryIterator</a> — The DirectoryIterator class</li><li><a href="class.emptyiterator.html">EmptyIterator</a> — The EmptyIterator class</li><li><a href="class.filesystemiterator.html">FilesystemIterator</a> — The FilesystemIterator class</li><li><a href="class.filteriterator.html">FilterIterator</a> — FilterIterator 类</li><li><a href="class.globiterator.html">GlobIterator</a> — GlobIterator 类</li><li><a href="class.infiniteiterator.html">InfiniteIterator</a> — The InfiniteIterator class</li><li><a href="class.iteratoriterator.html">IteratorIterator</a> — The IteratorIterator class</li><li><a href="class.limititerator.html">LimitIterator</a> — LimitIterator 类</li><li><a href="class.multipleiterator.html">MultipleIterator</a> — The MultipleIterator class</li><li><a href="class.norewinditerator.html">NoRewindIterator</a> — The NoRewindIterator class</li><li><a href="class.parentiterator.html">ParentIterator</a> — The ParentIterator class</li><li><a href="class.recursivearrayiterator.html">RecursiveArrayIterator</a> — The RecursiveArrayIterator class</li><li><a href="class.recursivecachingiterator.html">RecursiveCachingIterator</a> — The RecursiveCachingIterator class</li><li><a href="class.recursivecallbackfilteriterator.html">RecursiveCallbackFilterIterator</a> — The RecursiveCallbackFilterIterator class</li><li><a href="class.recursivedirectoryiterator.html">RecursiveDirectoryIterator</a> — The RecursiveDirectoryIterator class</li><li><a href="class.recursivefilteriterator.html">RecursiveFilterIterator</a> — The RecursiveFilterIterator class</li><li><a href="class.recursiveiteratoriterator.html">RecursiveIteratorIterator</a> — The RecursiveIteratorIterator class</li><li><a href="class.recursiveregexiterator.html">RecursiveRegexIterator</a> — The RecursiveRegexIterator class</li><li><a href="class.recursivetreeiterator.html">RecursiveTreeIterator</a> — The RecursiveTreeIterator class</li><li><a href="class.regexiterator.html">RegexIterator</a> — The RegexIterator class</li></ul></li><li><a href="spl.interfaces.html">接口</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="class.countable.html">Countable</a> — Countable 接口</li><li><a href="class.outeriterator.html">OuterIterator</a> — The OuterIterator interface</li><li><a href="class.recursiveiterator.html">RecursiveIterator</a> — The RecursiveIterator interface</li><li><a href="class.seekableiterator.html">SeekableIterator</a> — The SeekableIterator interface</li></ul></li><li><a href="spl.exceptions.html">异常</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="class.badfunctioncallexception.html">BadFunctionCallException</a> — The BadFunctionCallException class</li><li><a href="class.badmethodcallexception.html">BadMethodCallException</a> — BadMethodCallException 类</li><li><a href="class.domainexception.html">DomainException</a> — The DomainException class</li><li><a href="class.invalidargumentexception.html">InvalidArgumentException</a> — The InvalidArgumentException class</li><li><a href="class.lengthexception.html">LengthException</a> — The LengthException class</li><li><a href="class.logicexception.html">LogicException</a> — The LogicException class</li><li><a href="class.outofboundsexception.html">OutOfBoundsException</a> — The OutOfBoundsException class</li><li><a href="class.outofrangeexception.html">OutOfRangeException</a> — The OutOfRangeException class</li><li><a href="class.overflowexception.html">OverflowException</a> — The OverflowException class</li><li><a href="class.rangeexception.html">RangeException</a> — The RangeException class</li><li><a href="class.runtimeexception.html">RuntimeException</a> — The RuntimeException class</li><li><a href="class.underflowexception.html">UnderflowException</a> — The UnderflowException class</li><li><a href="class.unexpectedvalueexception.html">UnexpectedValueException</a> — The UnexpectedValueException class</li></ul></li><li><a href="ref.spl.html">SPL 函数</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="function.class-implements.html">class_implements</a> — 返回指定的类或接口实现的所有接口</li><li><a href="function.class-parents.html">class_parents</a> — 返回指定类的父类</li><li><a href="function.class-uses.html">class_uses</a> — Return the traits used by the given class</li><li><a href="function.iterator-apply.html">iterator_apply</a> — 为迭代器中每个元素调用函数</li><li><a href="function.iterator-count.html">iterator_count</a> — 计算迭代器中元素的个数</li><li><a href="function.iterator-to-array.html">iterator_to_array</a> — 复制迭代器中的元素到数组</li><li><a href="function.spl-autoload-call.html">spl_autoload_call</a> — 尝试所有已注册的 __autoload() 函数来装载请求类</li><li><a href="function.spl-autoload-extensions.html">spl_autoload_extensions</a> — 注册并返回 spl_autoload 的默认文件扩展名</li><li><a href="function.spl-autoload-functions.html">spl_autoload_functions</a> — 返回所有已注册的 __autoload() 函数</li><li><a href="function.spl-autoload-register.html">spl_autoload_register</a> — 注册指定的函数作为 __autoload 的实现</li><li><a href="function.spl-autoload-unregister.html">spl_autoload_unregister</a> — 注销已实现的 __autoload() 函数</li><li><a href="function.spl-autoload.html">spl_autoload</a> — __autoload()函数的默认实现</li><li><a href="function.spl-classes.html">spl_classes</a> — 返回所有可用的SPL类</li><li><a href="function.spl-object-hash.html">spl_object_hash</a> — 返回指定对象的 hash id</li><li><a href="function.spl-object-id.html">spl_object_id</a> — Return the integer object handle for given object</li></ul></li><li><a href="spl.files.html">文件处理</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="class.splfileinfo.html">SplFileInfo</a> — The SplFileInfo class</li><li><a href="class.splfileobject.html">SplFileObject</a> — SplFileObject 类</li><li><a href="class.spltempfileobject.html">SplTempFileObject</a> — The SplTempFileObject class</li></ul></li><li><a href="spl.misc.html">各种类及接口</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="class.arrayobject.html">ArrayObject</a> — The ArrayObject class</li><li><a href="class.splobserver.html">SplObserver</a> — The SplObserver interface</li><li><a href="class.splsubject.html">SplSubject</a> — The SplSubject interface</li></ul></li></ul></div></div></div></body></html>